@layout("/common/_container.html",{bg:"bg-white",js:["/assets/modular/system/dept/form.js"]}){
<form id="deptForm" lay-filter="deptForm" class="layui-form model-form">
    <input name="id" type="hidden" value="${dept.id}"/>
    <input name="lesseeId" type="hidden" value="${dept.lesseeId}"/>
    <input id="parentId" name="parentId" type="hidden" value="${dept.parentId}">

    <div class="layui-form-item">
        <label class="layui-form-label">部门名称<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input name="deptName" placeholder="请输入部门名称" type="text" class="layui-input" lay-verify="required" 
            value="${dept.deptName}" 
            maxlength="32" 
            required/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">上级部门<span style="color: red;">*</span></label>
        <div class="layui-input-block">
            <input id="parentName" name="parentName" placeholder="请输入上级名称" type="text" class="layui-input" lay-verify="required" required autocomplete="off"  value="${dept.parentName}" />
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input name="memo" placeholder="请输入备注" type="text" class="layui-input" value="${dept.memo}" maxlength="150" />
        </div>
    </div>

    <div class="layui-form-item text-right">
        <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
    </div>
</form>
@}
